@extends('frontend/layouts/default')

@section('content')

<h1>Show Code</h1>

<p>
{{ link_to_route('nd.master.code.index', 'Return to all Code', null, array('class' => 'btn btn-info')) }}
&nbsp;&nbsp;
{{ link_to_route('nd.master.code.create', 'Add new Code', null, array('class' => 'btn btn-info')) }}
</p>

<table class="table table-striped table-bordered">
    <col width="35%">
    <col width="60%">
    <tbody>
         <tr> <th>Domainid</th> <td>{{ $code->domainid }}</td> </tr> 
<tr> <th>Codetype</th> <td>{{ $code->codetype }}</td> </tr> 
<tr> <th>Code</th> <td>{{ $code->code }}</td> </tr> 
<tr> <th>Name</th> <td>{{ $code->name }}</td> </tr> 
<tr> <th>Description</th> <td>{{ $code->description }}</td> </tr> 
<tr> <th>Sortno</th> <td>{{ $code->sortno }}</td> </tr> 
        <tr><td colspan="2">
{{ Form::open(array('method' => 'DELETE', 'route' => array('nd.master.code.destroy', $code->getJointPk()))) }} 
{{ link_to_route('nd.master.code.edit', 'Edit', $code->getJointPk(), array('class' => 'btn btn-info')) }} &nbsp;&nbsp;
{{ Form::submit('Delete', array('class' => 'btn btn-danger')) }}
{{ Form::close() }}
        </td></tr>
    </tbody>
</table>

@stop